package com.ybkj.daijia.server.model;

import java.math.BigDecimal;

/**
 * 司机消费记录
 *
 * @author Shine
 */

public class DriverConsumedRecord extends Base {

    public static final String DRIVER_CONSUMEDRECORD_TYPE_ORDER = "公司抽成";
    public static final String DRIVER_CONSUMEDRECORD_TYPE_XINXI = "保险费/信息费";
    public static final String DRIVER_CONSUMEDRECORD_HELPPAY = "代付";
    public static final String DRIVER_CONSUMEDRECORDWORK_WORKCAR = "工作车支付";
    public static final int ORDER_TYPE_DAIJIA = 0;
    public static final int ORDER_TYPE_ZHUANCHE = 1;
    public static final int ORDER_TYPE_PAOTUI = 2;
    public static final int ORDER_TYPE_ZUCHE = 3;
    public static final int ORDER_TYPE_FREIGHT = 4;
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private Long driverId;

    private BigDecimal ticheng;// 提成金额

    private BigDecimal money;// 消费金额

    private BigDecimal afterMoney;// 交易后余额

    private Long orderId;// 订单id

    private String orderNumber;// 订单号

    private String type;// 消费类型

    private String memo;//

    private Integer orderType;//订单类型 0代驾,1专车,2跑腿,3租车

    public Long getDriverId() {
        return driverId;
    }

    public void setDriverId(Long driverId) {
        this.driverId = driverId;
    }

    public BigDecimal getMoney() {
        if (null == money) {
            return BigDecimal.ZERO;
        }
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getTicheng() {
        if (null == ticheng) {
            return BigDecimal.ZERO;
        }
        return ticheng;
    }

    public void setTicheng(BigDecimal ticheng) {
        this.ticheng = ticheng;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getMemo() {
        if (null == memo) {
            return "";
        }
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public BigDecimal getAfterMoney() {
        return afterMoney;
    }

    public void setAfterMoney(BigDecimal afterMoney) {
        this.afterMoney = afterMoney;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

}
